import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.SocketException;

public class Test {

    public static void main(String[] args) throws IOException {
        DatagramSocket socket = new DatagramSocket();

        while (true) {
            DatagramPacket packet = new DatagramPacket(new byte[1024],1024);
            socket.receive(packet);
        }
    }
}
